package com.example.service.impl;


import com.example.Bean.po.TeachBuildInfo;
import com.example.Bean.vo.QueryVO;
import com.example.Dao.TeachBuildInfoDao;
import com.example.service.ITeachBuildInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class TeachBuildInfoService implements ITeachBuildInfoService {
	@Autowired
	TeachBuildInfoDao teachBuildInfoDao;

	@Override
	public List<TeachBuildInfo> queryTeachBuildInfo(QueryVO queryVO) {
		try {
			List<TeachBuildInfo> teachBuildInfoList = teachBuildInfoDao.selectAll(queryVO);
			return teachBuildInfoList;
		}catch (Exception e){
			e.printStackTrace();
			return Collections.emptyList();
		}
	}
}
